package cn.schoolwow.util.module.query.resource.flow.walkResource;

import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;
import cn.schoolwow.util.domain.check.instance.CheckInstance;
import cn.schoolwow.util.module.query.resource.domain.ResourceQueryOption;

public class CheckWalkResourceRequestFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        ResourceQueryOption resourceQueryOption = (ResourceQueryOption) flowContext.checkData("resourceQueryOption");

        CheckInstance.newCheck()
                .notNullCheck(resourceQueryOption.fileFilterOption.singleQueryResourceHandler, "单个资源文件处理器");
    }

    @Override
    public String name() {
        return "遍历文件路径";
    }
}
